<html>
<head><meta charset="utf-8"><title>immediate values · project-inline-asm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/index.html">project-inline-asm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/immediate.20values.html">immediate values</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233128834"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/immediate%20values/near/233128834" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/immediate.20values.html#233128834">(Apr 05 2021 at 02:09)</a>:</h4>
<p>how does one get immediate values into inline asm? That is, if I have a const from elsewhere in rust, how can i substitute that value into my assembly string?</p>



<a name="233128975"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/immediate%20values/near/233128975" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/immediate.20values.html#233128975">(Apr 05 2021 at 02:12)</a>:</h4>
<p>Ah, i see now it's the <code>number = const 5</code> example. I did a search for "immediate" in the docs and it didn't appear on the page. Perhaps the docs could note that, but no worries.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>